﻿/*
    File Name:      uknow_art_form.js
    Created By:     victor.liu
    Created When:   2012-03-28
    Created Whys:   
*/

function ArtForm() {
    
}

ArtForm.getArtForm = function (langID, id) {
    var url = "/GateService/ArtFormGate.aspx?lang=" + langID + "&op=getArtForm&id=" + id + "&ram=" + new Date().toLocaleString();
    var req = new ajaxRequest(url);
    var model = null;
    req.async = false;
    req.get(function (res) {
        model = res;
    });

    return model;
};

ArtForm.getArtForms = function (langID) {
    var url = "/GateService/ArtFormGate.aspx?lang=" + langID + "&op=getArtForms&ram=" + new Date().toLocaleString();
    var req = new ajaxRequest(url);
    var models = null;
    req.async = false;
    req.get(function (res) {
        models = res;
    });

    return models;
};